#include <iostream>
#include <vector>

using namespace std;
int main() {
  vector<int> v;
  v.reserve(4);
  cout << v.size() << endl;
  cout << v.capacity() << endl;
  v.push_back(1);
  v.push_back(1);
  v.push_back(1);
  v.push_back(1);
  cout << v.size() << endl;
  cout << v.capacity() << endl;
  v.push_back(1);
  cout << v.size() << endl;
  cout << v.capacity() << endl;

  return 0;
}